package cn.signalpha.modules.base.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 类说明
 *
 * @author signalpha
 */
@Getter
@AllArgsConstructor
public enum WxReplyTypeEnum {

	/**
	 * 文本消息
	 */
	TEXT("text", "文本消息"),

	/**
	 * 图片消息
	 */
	IMAGE("image", "图片消息"),

	/**
	 * 录音消息
	 */
	VOICE("voice", "录音消息"),

	/**
	 * 视频消息
	 */
	VIDEO("video", "视频消息"),

	/**
	 * 图文消息 - 草稿箱消息
	 */
	MP_NEWS_ARTICLE("mpnewsarticle", "图文消息"),

    ;

    private final String type;
    private final String name;

	public static WxReplyTypeEnum instance(String type) {
		WxReplyTypeEnum[] values = WxReplyTypeEnum.values();
		for (WxReplyTypeEnum statusEnum : values) {
			if (statusEnum.type.equals(type)) {
				return statusEnum;
			}
		}
		return null;
	}

}
